<?php

class FaxConfig {
  
  static private $config;
  static private $instance;
  
  private function __construct() {
    self::$config = Spyc::YAMLLoad('config/config.yml');
  }
  
  private function __clone() {}
  
  public static function getConfig() {
    if(!self::$instance instanceof self){
      self::$instance = new self;
    }
    return self::$instance;
  }
  
  public function getValue($key) {
    return self::$config[$key];
  }
  
}
?>